﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SDB2DM.SpatialType
{
    class Point : Spatial
    {
        public const string ID_PREFIX = Utility.SPATIAL_ID_PREFIX_POINT;
        public const string POSITION_TAG = Utility.SPATIAL_POINT_POSITION_TAG;
        public const string DIRECT_POSITION_TAG = Utility.SPATIAL_DIRECT_POSITION_TAG;
        public const string COORDINATE_TAG = Utility.SPATIAL_COORDINATE_TAG;
        public const string DIMENSION_TAG = Utility.SPATIAL_DIMENSION_TAG;
        public const string DIMENSION_VALUE = Utility.SPATIAL_DIMENSION_VALUE;

        public Point()
            : base(Spatial.POINT_TAG)
        {
        }

        private double x = 0D;
        public double X
        {
            get
            {
                return x;
            }
            set
            {
                x = value;
            }
        }

        private double y = 0D;
        public double Y
        {
            get
            {
                return y;
            }
            set
            {
                y = value;
            }
        }

        /*
        private string positionTag = String.Empty;
        public string PositionTag
        {
            get
            {
                return Utility.SPATIAL_POINT_POSITION_TAG;
            }
        }

        private string directPosTag = String.Empty;
        public string DirectPosTag
        {
            get
            {
                return Utility.SPATIAL_DIRECT_POSITION_TAG;
            }
        }

        private string coordinateTag = String.Empty;
        public string CoordinateTag
        {
            get
            {
                return Utility.SPATIAL_COORDINATE_TAG;
            }
        }
        */

        private string coordinateValue = String.Empty;
        public string CoordinateValue
        {
            get
            {
                return coordinateValue;
            }
            set
            {
                coordinateValue = value;
            }
        }

        /*
        private string dimensionTag = String.Empty;
        public string DimensionTag
        {
            get
            {
                return Utility.SPATIAL_DIMENSION_TAG;
            }
        }

        private string dimensionValue = String.Empty;
        public string DimensionValue
        {
            get
            {
                return Utility.SPATIAL_DIMENSION_VALUE;
            }
        }
        */
    }
}
